package com.mall.api.dao;

import com.mall.api.entity.BrandInfoEntity;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 品牌信息表
 * @author Venus
 * @date 2020/05/06
 */
@Mapper
@Repository
public interface BrandInfoDao {

    /**
     * [新增]
     * @author Venus
     * @date 2020/05/06
     **/
    int insert(BrandInfoEntity BrandInfoEntity);

    /**
     * [刪除]
     * @author Venus
     * @date 2020/05/06
     **/
    int delete(int id);

    /**
     * [更新]
     * @author Venus
     * @date 2020/05/06
     **/
    int update(BrandInfoEntity BrandInfoEntity);

    /**
     * [查询] 根据主键 id 查询
     * @author Venus
     * @date 2020/05/06
     **/
    BrandInfoEntity load(int id);

    /**
     * [查询] 分页查询
     * @author Venus
     * @date 2020/05/06
     **/
    List<BrandInfoEntity> pageList(int offset, int pagesize);

    /**
     * [查询] 分页查询 count
     * @author Venus
     * @date 2020/05/06
     **/
    int pageListCount(int offset,int pagesize);

}
